from django.db import models

# Create your models here.

class Blog(models.Model):
    description = models.CharField(default='在这儿写作品描述', max_length=100)
    # date = models.DateField(default='2014-2-3')
    image = models.ImageField(default='default.png', upload_to='images/')
    title = models.CharField(default='作品标题', max_length=20)
    text = models.TextField(default='作品正文')

    def __str__(self):
        return self.title
